home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1895 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.ifm.liu.se!stenmark
  2. From: stenmark@lysator.liu.se (Andreas Stenmark)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Subclasses of groupgclass (BOOPSI)
  5. Date: 22 Jan 1996 22:03:50 GMT
  6. Message-ID: <4e11k6$2ec@newsy.ifm.liu.se>
  7. NNTP-Posting-Host: kristina.lysator.liu.se
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset=iso-8859-1
  10. Content-Transfer-Encoding: 8bit
  11. Keywords: BOOPSI
  12. X-Newsreader: NN version 6.5.0 #24 (NOV)
  13.  
  14. Hi net!
  15.  
  16. Does anyone know if there's any special kind of magic to be considered
  17. when you need to have subclasses of groupgclass be members of other
  18. subclasses of groupgclass? I have been trying to make this work this
  19. entire weekend, but so far all I see is failure.
  20.  
  21. To be a little more specific, I have a ScrollBar class (whose
  22. superclass is groupgclass) that consists of a (custom) proportional
  23. gadget and two (optional) arrow buttons. When used from a normal test
  24. program this works without any problems. And then, I have another
  25. class, ListBox (whose superclass is groupgclass as well) that wants to
  26. use this ScrollBar class among one or two other classes. Trying to use
  27. the ScrollBar class from ListBox invariably ends in failure (Enforcer
  28. hit and machine lock-up), and I can't understand why. If the ScrollBar
  29. class is added to ListBox and no gadgets are added to ScrollBar there
  30. seem to be no problems, but as soon as anything is added to ScrollBar,
  31. the whole thing goes down in flames. And this appears to be independent
  32. of the gadgets added to ScrollBar btw. I've tried adding just a simple
  33. instance of frbuttonclass too, but that won't work either. Besides,
  34. when I add the custom prop and button classes directly to ListBox,
  35. everything works just perfectly, but I'd really like to have it
  36. organized as I've described above.
  37.  
  38. Is this enough info for you BOOPSI experts out there, or do I need to
  39. be even more specific? Thanks in advance.
  40.  
  41.  
  42. -Andreas
  43. --
  44. Andreas Stenmark, stenmark@lysator.liu.se
  45. Windows programming for money, Amiga programming for pleasure
  46. "Guilt is the most efficient form of manipulation."
  47.